package com.cmii.sjw.department.control.jsc.controller;

import com.cmii.sjw.department.control.jsc.model.params.DistrictParams;
import com.cmii.sjw.department.control.jsc.model.vo.CockpitMetricsVo;
import com.cmii.sjw.department.control.jsc.model.vo.EduCockpitHomeVo;
import com.cmii.sjw.department.control.jsc.service.EduCockpitService;
import com.cmii.sjw.department.control.jsc.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 教育驾驶舱
 * @Author jfh
 * @Date 2025-05-12 周一 15:08
 * @Version 1.0
 */
@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/eduCockpit")
public class EduCockpitController {

    @Autowired
    private EduCockpitService eduCockpitService;

    /**
     * 质量体系
     * @return 质量体系数据
     */
    @PostMapping("/zltx")
    public Result<EduCockpitHomeVo> zltx() {
        return eduCockpitService.zltx();
    }

    /**
     * 服务发展
     * @return 服务发展数据
     */
    @PostMapping("/fwfz")
    public Result<EduCockpitHomeVo> fwfz() {
        return eduCockpitService.fwfz();
    }

    /**
     * 关键绩效指标KPI
     * @return 关键绩效指标KPI数据
     */
    @PostMapping("/gjjxzbKpi")
    public Result<List<CockpitMetricsVo>> gjjxzbKpi() {
        return eduCockpitService.gjjxzbKpi();
    }

    /**
     * 人才培养
     * @return 人才培养数据
     */
    @PostMapping("/rcpy")
    public Result<EduCockpitHomeVo> rcpy() {
        return eduCockpitService.rcpy();
    }

    /**
     * 师资队伍
     * @return
     */
    @PostMapping("/szdw")
    public Result<EduCockpitHomeVo> szdw() {
        return eduCockpitService.szdw();
    }

    /**
     * 学校治理
     * @return 学校治理数据
     */
    @PostMapping("/xxzl")
    public Result<EduCockpitHomeVo> xxzl() {
        return eduCockpitService.xxzl();
    }

    /**
     * 区县驾驶舱
     * @param params 区县参数
     * @return IRS区县驾驶舱数据
     */
    @PostMapping("/districtCockkpit")
    public Result<String> districtCockkpit(@RequestBody DistrictParams params) {
        return eduCockpitService.districtCockkpit(params);
    }
}
